<template>
	<view class="commitSuc">
		<image v-if="state==0" class="pic" src="/live/static/images/commit.png" mode=""></image>
		<image v-if="state==2" class="pic" src="/live/static/images/commit2.png" mode=""></image>
		<view v-if="state==0" class="success">提交成功</view>
		<view v-if="state==2" class="success">审核失败</view>
		<view v-if="state==0" class="msg">审核结果通过短信和本页直播通知您</view>
		<view v-if="state==2" class="msg">{{remark}}</view>
		<view class="creButton" @click="backMY">
			<button type="primary">确定</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return { 
				state:0,
				remark:""
			}
		},
		onLoad(e) {
			this.state = e.state
			if(e.remark){
				this.remark=e.remark
			}
		},
		methods: {
			backMY() {
				if(this.state==0){
					uni.switchTab({
						url: '/main/member/index'
					})
				}else if(this.state==2){
					uni.redirectTo({
						url:"apply_live?retu="+true
					})
				}
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.commitSuc {
		width: 100%;
		text-align: center;

		.pic {
			margin-top: 250rpx;
			width: 253rpx;
			height: 169rpx;
		}

		.success {
			margin-top: 10rpx;
			font-size: 32rpx;
			font-family: "PingFangSC";
			color: rgb(34, 34, 34);
			line-height: 70rpx;
			font-weight: 700;
		}

		.msg {
			font-size: 26rpx;
			font-family: "PingFangSC";
			color: rgb(153, 153, 153);
			line-height: 50rpx;
		}

		.creButton {
			margin-top: 400rpx;
			padding: 0 20rpx;

			button {
				width: 100%;
				border-radius: 30upx;
				background-image: -moz-linear-gradient(0deg, #bf0250 0%, rgb(255, 73, 60) 100%);
				background-image: -webkit-linear-gradient(0deg, #bf0250 0%, rgb(255, 73, 60) 100%);
				background-image: -ms-linear-gradient(0deg, #bf0250 0%, rgb(255, 73, 60) 100%);
			}
		}
	}
</style>
